home *** CD-ROM | disk | FTP | other *** search
/ Macworld Expo - Develope…Central & Net Innovations / Developer Central and Net Innovators (MacWorld Expo) (January 1999).iso / Developer Central / Bowers Development / Demo AppMaker / Examples / PowerPlant / Everything / CModelessCheckboxes.h < prev    next >
Encoding:
Text File  |  1998-10-11  |  2.6 KB  |  93 lines  |  [TEXT/CWIE]

  1. // CModelessCheckboxes.h -- dialog class
  2.  
  3. #pragma once
  4.  
  5. #include <LGADialog.h>
  6.  
  7. #include "DModelessCheckboxesData.h"
  8.  
  9. class LStream;
  10.  
  11. class LCheckBox;
  12. class LDisclosureTriangle;
  13. class LStaticText;
  14. class LTextGroupBox;
  15. class CCheckBox;
  16. class LToggleButton;
  17. class LBevelButton;
  18.  
  19.  
  20. //----------
  21. class CModelessCheckboxes : public LGADialog {
  22. public:    // these comprise the programming interface for using the dialog
  23.     static    CModelessCheckboxes*        CreateModelessCheckboxes        (LCommander*    inSuperCommander,
  24.                                                  CommandT        inCommand,
  25.                                                  DModelessCheckboxesData*        inData);
  26.     virtual void        SetFromData        (DModelessCheckboxesData*        inData);
  27.     virtual DModelessCheckboxesData*        GetData ();
  28.  
  29. // these functions will be obsoleted
  30. // retained only for backwards compatibility
  31.     virtual Boolean        GetStandardChoice();
  32.     virtual void        SetStandardChoice        (Boolean    inChoice);
  33.     virtual Boolean        GetXxChoice();
  34.     virtual void        SetXxChoice        (Boolean    inChoice);
  35.     virtual Boolean        GetLRChoice();
  36.     virtual void        SetLRChoice        (Boolean    inChoice);
  37.     virtual Boolean        GetLR2Choice();
  38.     virtual void        SetLR2Choice        (Boolean    inChoice);
  39.     virtual Boolean        GetLR3Choice();
  40.     virtual void        SetLR3Choice        (Boolean    inChoice);
  41.     virtual Boolean        GetLR4Choice();
  42.     virtual void        SetLR4Choice        (Boolean    inChoice);
  43.     virtual Boolean        GetCheckboxChoice();
  44.     virtual void        SetCheckboxChoice        (Boolean    inChoice);
  45.     virtual Boolean        GetCheckbox2Choice();
  46.     virtual void        SetCheckbox2Choice        (Boolean    inChoice);
  47.     virtual Boolean        GetNextChoice();
  48.     virtual void        SetNextChoice        (Boolean    inChoice);
  49.     virtual Boolean        GetNext2Choice();
  50.     virtual void        SetNext2Choice        (Boolean    inChoice);
  51.  
  52.  
  53. public:    // these comprise the implementation
  54.     enum { class_ID = 'Mod6' };
  55.  
  56.                         CModelessCheckboxes        (LStream*    inStream);
  57.     virtual                ~CModelessCheckboxes();
  58.  
  59.     virtual void        ListenToMessage        (MessageT    inMessage,
  60.                                              void        *ioParam);
  61.  
  62.     virtual Boolean        ObeyCommand            (CommandT    inCommand,
  63.                                              void        *ioParam = nil);
  64.     virtual void        FindCommandStatus    (CommandT    inCommand,
  65.                                              Boolean    &outEnabled,
  66.                                              Boolean    &outUsesMark,
  67.                                              Char16        &outMark,
  68.                                              Str255        outName);
  69.  
  70. protected:
  71.     static    void        RegisterClass();
  72.     virtual void        FinishCreateSelf();
  73.     virtual void        DataChanged        (long        inDataID);
  74.  
  75. protected:
  76.     static Boolean        sIsRegistered;
  77.     CommandT            mCommand;
  78.  
  79.     LCheckBox*        mStandardCheck;
  80.     LDisclosureTriangle*        mXxCheck;
  81.     CCheckBox*        mLRCheck;
  82.     CCheckBox*        mLR2Check;
  83.     LToggleButton*        mLR3Check;
  84.     LToggleButton*        mLR4Check;
  85.     CCheckBox*        mCheckboxCheck;
  86.     LBevelButton*        mCheckbox2Check;
  87.     LBevelButton*        mNextCheck;
  88.     LBevelButton*        mNext2Check;
  89.  
  90.     DModelessCheckboxesData*        mData;
  91.  
  92. };
  93.